<% #endcoding:utf-8%>
  <%=render partial: "shared/path_nav",locals:{:@paths=>[{name:'首页',url:'/'},{name:'问答',url:'/questions'},{name:@question.title}]}%>
<%=render partial: "detail"%>
<div class="panel">
<div class="panel-heading">
  <h3 class="demand-top">回答(<%=@question.answers.count%>)</h3>
</div>
  <%if @question.answers.order('adopted desc').any?%>
  <ul class="list-group">
    <%=render @question.answers.order('adopted desc,created_at desc').paginate  :page=> params[:page],:per_page=> 12%>
    <%=will_paginate @question.answers.order('created_at desc').paginate  :page=> params[:page],:per_page=> 12%>
  </ul>
  <%else%>
  <%=render partial: "shared/no_content"%>
  <%end%>
  <%=link_to "我来回答",new_question_answer_url(@question),class:'btn btn-warning btn-block'%>
  <div class="panel-footer"></div>
</div>